
import tianditu from './tianditu.js'
import autonavi from './autonavi.js'
import google from './google.js'
import arcgis from './arcgis.js'
import osm from './osm.js'
import basic from './basic.js'

const providers = [tianditu, autonavi, google, arcgis, osm, basic]

// 图层层级初始化
let index = 1
providers.forEach((item) => {
  let layers = Array.isArray(item.layers) ? item.layers : []
  layers.forEach((node) => {
    index += 1
    node.zindex = node.zindex || index
  })
})

export default providers

export {
  tianditu, autonavi, google, arcgis, osm, basic
}
